import Vue from 'vue'
import Router from 'vue-router'
import test from '@/components/test'
import goods from '@/components/goods'
import book from '@/components/book'
import showbook from '@/components/showbook'
import register from '@/components/register'
import login from '@/components/login'



Vue.use(Router)


var routes = [

  {
    path:'/login',
    name:'login',
    component:login
  },

  {
    path:'/register',
    name:'register',
    component:register
  },

        {
          path:'/',
          name:'test',
          component:test
        },

        {
          path:'/goods',
          name:'goods',
          component:goods
        },

        {
          path:'/book',
          name:'book',
          component:book
        },

        {
          path:'/showbook',
          name:'showbook',
          component:showbook
        },

]

export default new Router({
  routes:routes,
  mode:'history'   /*hash*/
})
